package com.example.forumadminbackend.mapper;

import com.example.forumadminbackend.entity.Post;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PostMapper {
    Post selectById(@Param("postId") String postId);
    List<Post> selectAll();
    int delete(@Param("postId") String postId);
    int updateTop(@Param("postId") String postId, @Param("isTop") Integer isTop);
    int update精华(@Param("postId") String postId, @Param("is精华") Integer is精华);
    int insert(Post post);
} 